import request from '@/utils/request'

// 查询房态图
export function listInfo() {
  return request({
    url: '/fangyuan/tu/list',
    method: 'get',
    // params: query
  })
}

// 查询房态图列表详细
export function getInfo(id) {
  return request({
    url: '/fangyuan/tu/' + id,
    method: 'get'
  })
}

// 新增房态图
export function addInfo(data) {
  return request({
    url: '/fangyuan/tu/add',
    method: 'post',
    data: data
  })
}


export function upload(file){
  return request({
    url: '/fangyuan/tu/upload',
    method: 'post',
    data: data
  })
}












// 修改房源列表
export function updateInfo(data) {
  return request({
    url: '/fangyuan/info',
    method: 'put',
    data: data
  })
}

// 删除房源列表
export function delInfo(id) {
  return request({
    url: '/fangyuan/info/' + id,
    method: 'delete'
  })










}
